package flyweightPattern;

public class FlyweightPatternMain {

    // 输入psvm，按下enter键，生成main方法.
    public static void main(String[] args) {

        Goods mi6 = GoodsFactory.getGoods("MI6");

        mi6.showGoodsPrice("32GB");

        Goods iP8 = GoodsFactory.getGoods("iPhone8");

        iP8.showGoodsPrice("64GB");

        Goods iPhone8 = GoodsFactory.getGoods("iPhone8");

        iPhone8.showGoodsPrice("128GB");

    }

}
